/**
 * EditPictureService.java
 *
 *
 * $LastChangedBy: allen $
 * $LastChangedDate: 2007-12-03 12:17:41 +0800 $
 * $Revision: 1324 $
 */
package com.myspace.service.picture;

import org.springframework.transaction.annotation.Transactional;

import com.myspace.domain.Picture;
import com.myspace.domain.PictureComment;
import com.myspace.domain.Tag;


/**
 * Service for edit picture.
 *
 * @author Allen.Chen
 *
 */
@Transactional
public interface EditPictureService {

	public void addPicture(Long userId,Picture picture, String[] tags);

	public void delPicture(Long id);

	public void updatePicture(Picture pic);

	public void savePictureComment(PictureComment picComment);

	public Tag addTag(String tagName);

	public void addTagToPicture(Long id,String tagName);

	@Transactional(readOnly=true)
	public Picture getPicture(Long id);

}
